package org.scirp.ijmis.dao.admin.impl;

import java.util.List;

import org.scirp.ijmis.dao.admin.IAdminDAO;
import org.scirp.ijmis.dao.base.impl.BaseDAOImpl;
import org.scirp.ijmis.po.admin.Admin;

public class AdminDAOImpl extends BaseDAOImpl<Admin> implements IAdminDAO {

	private static final String className = AdminDAOImpl.class.toString();

	public List<Admin> selectAll() {

		String hql = "from Country order by pid desc";
		return super.ExecuteQuery(hql, className + "-->selectAll");
	}

	public Long countObject() {
		return super.countObject(className + "-->selectAll");
	}

	public Admin selectById(Object id) {

		return (Admin) super.selectById(id, className + "-->selectById");
	}

}
